﻿using UnityEngine;
using System.Collections;

public class RGResource {

    //采用bundle方式加载
    public static bool USE_BUNDLE_LOAD = true;

    // 路径分割符号
    public static char[] PATH_SEPARATOR = new char[] { '/' };

    //bundle 后缀名称
    public const string PACKAGE_SUFFIX = "ab";

    //资源路径
    public const string ROOT_PATH = "Assets/build";

    // 预加载标识
    public const string PRESTRAIN_FLAG = "PrestrainFlage";

    // 只加载永久bundle，并且不销毁标志
    public const string LOAD_BUNDLE_FOREVER_FLAG = "loadBundleForeverFlag";

    private static T LoadAsset<T>(string resUrl, string suffix) where T : UnityEngine.Object
    {
        return null;
    }
}

// 异步加载事件参数
public class LoadEventData
{
    public object[] data;

    public T Get<T>(int i)
    {
        return (T)data[i];
    }

    public object Get(int i)
    {
        return data[i];
    }
}
